<ul class="status">
  <li class="status-marker">
    <div class="marker">
      <%= release_state_icon(release.releaseState) %>
    </div>
    <div class="description">
      <ul>
        <li><%= icon('info-circle') %> release <%= highlight(release.releaseId) %> is in <%= highlight(release.releaseState, release.releaseState) %> state</li>
        <li><%= icon('star') %> created by <%= highlight(release.createdBy, 'info') %> <%= highlight(time_ago_in_words(release.created_timestamp)) %></li>
        <% if release.commitedBy %>
          <li><%= icon('arrow-circle-o-down') %> <%= release.releaseState == 'canceled' ? 'cancel' : 'commit' %> by <%= highlight(release.commitedBy, 'info') %>
            <%= highlight(time_ago_in_words(release.updated_timestamp)) %>
          </li>
        <% end %>
        <% if release.releaseState == 'closed' && release.description.present? %>
          <li><%= icon('comment') %> <%= release.description %></li>
        <% end %>
      </ul>
      <% if release.releaseState == 'open' && dto_allowed?(@assembly.ciId) %>
        <ul class="status-actions">
          <%= render 'controls' %>
        </ul>
      <% end %>
    </div>
  <li>
</ul>
